import { defineConfig } from 'vitepress'
import { nav,sidebar } from './relaConf';

// https://vitepress.dev/reference/site-config
export default defineConfig({
  base: '/',
  title: "编程日记",
  description: "编程日记",
  head: [
    // 静态标签
    ['meta', { name: 'baidu_union_verify', content: '5521327a0edaa2d74fd29c3fa790835f' }],

  ],
  lastUpdated: true,
  ignoreDeadLinks: true,
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    // 上导航
    nav: nav,

    // 左侧导航
    sidebar: sidebar,

    // 右侧导航
    outline: {
      level: [1, 6],
      label: '目录'
    },

    search: {
      provider: 'local'
    },

    socialLinks: [
      { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
    ]
  },
  // 打包配置
  vite: {
    build: {
      chunkSizeWarningLimit: 2000
    }
  }
})
